package com.gpipe.tools;

import com.gpipe.properties.InputProperties;

/**
 * Created by admin on 2017/8/14.
 */
public class WorkLife {
    private String workBts;
    private String lifeBts;
    private String bAreaIdWork;
    private String mAreaIdWork;
    private String sAreaIdWork;
    private String bAreaIdLife;
    private String mAreaIdLife;
    private String sAreaIdLife;

    private String bAreaNameWork;
    private String mAreaNameWork;
    private String sAreaNameWork;
    private String bAreaNameLife;
    private String mAreaNameLife;
    private String sAreaNameLife;

    public WorkLife(String workBts, String lifeBts) {
        this.workBts = workBts;
        this.lifeBts = lifeBts;
    }
    public WorkLife() {
    }


    public String getbAreaNameWork() {
        return bAreaNameWork;
    }

    public void setbAreaNameWork(String bAreaNameWork) {
        this.bAreaNameWork = bAreaNameWork;
    }

    public String getmAreaNameWork() {
        return mAreaNameWork;
    }

    public void setmAreaNameWork(String mAreaNameWork) {
        this.mAreaNameWork = mAreaNameWork;
    }

    public String getsAreaNameWork() {
        return sAreaNameWork;
    }

    public void setsAreaNameWork(String sAreaNameWork) {
        this.sAreaNameWork = sAreaNameWork;
    }

    public String getbAreaNameLife() {
        return bAreaNameLife;
    }

    public void setbAreaNameLife(String bAreaNameLife) {
        this.bAreaNameLife = bAreaNameLife;
    }

    public String getmAreaNameLife() {
        return mAreaNameLife;
    }

    public void setmAreaNameLife(String mAreaNameLife) {
        this.mAreaNameLife = mAreaNameLife;
    }

    public String getsAreaNameLife() {
        return sAreaNameLife;
    }

    public void setsAreaNameLife(String sAreaNameLife) {
        this.sAreaNameLife = sAreaNameLife;
    }

    public String getWorkBts() {
        return workBts;
    }

    public void setWorkBts(String workBts) {
        this.workBts = workBts;
        BaseAreaModel bam = InputProperties.baseArea.get(workBts);
        if (bam != null) {
            this.bAreaIdWork = bam.getB_area_id();
            this.mAreaIdWork = bam.getM_area_id();
            this.sAreaIdWork = bam.getS_area_id();
            this.bAreaNameWork = bam.getB_area_name();
            this.mAreaNameWork = bam.getM_area_name();
            this.sAreaNameWork = bam.getS_area_name();
        }
    }

    public String getLifeBts() {
        return lifeBts;
    }

    public void setLifeBts(String lifeBts) {
        this.lifeBts = lifeBts;
        BaseAreaModel bam = InputProperties.baseArea.get(lifeBts);
        if (bam != null) {
            this.bAreaIdLife = bam.getB_area_id();
            this.mAreaIdLife = bam.getM_area_id();
            this.sAreaIdLife = bam.getS_area_id();
            this.bAreaNameLife = bam.getB_area_name();
            this.mAreaNameLife = bam.getM_area_name();
            this.sAreaNameLife = bam.getS_area_name();
        }


    }


    public String getbAreaIdWork() {
        return bAreaIdWork;
    }

    public void setbAreaIdWork(String bAreaIdWork) {
        this.bAreaIdWork = bAreaIdWork;
    }

    public String getmAreaIdWork() {
        return mAreaIdWork;
    }

    public void setmAreaIdWork(String mAreaIdWork) {
        this.mAreaIdWork = mAreaIdWork;
    }

    public String getsAreaIdWork() {
        return sAreaIdWork;
    }

    public void setsAreaIdWork(String sAreaIdWork) {
        this.sAreaIdWork = sAreaIdWork;
    }

    public String getbAreaIdLife() {
        return bAreaIdLife;
    }

    public void setbAreaIdLife(String bAreaIdLife) {
        this.bAreaIdLife = bAreaIdLife;
    }

    public String getmAreaIdLife() {
        return mAreaIdLife;
    }

    public void setmAreaIdLife(String mAreaIdLife) {
        this.mAreaIdLife = mAreaIdLife;
    }

    public String getsAreaIdLife() {
        return sAreaIdLife;
    }

    public void setsAreaIdLife(String sAreaIdLife) {
        this.sAreaIdLife = sAreaIdLife;
    }
}
